import React,{Component } from 'react'
import "./style.css"
// import TitleHeader from '../components/TitleHeader/index'
// import ShopList from '../components/ShopList/index'
// import { BrowserRouter as Router,Route,withRouter,Switch} from 'react-router-dom';
import Routes from '../router'
class App extends Component {
	constructor() {
        super()
        this.state = {shopList: []}
    }
	render(){
		return (
			<div>
				<Routes></Routes>
			</div>
		)
	}
	componentDidMount(){
		// fetch("/ShopData.json").then((res)=>{
		// 	if(res.ok){
		// 		res.json().then((data)=>{
		// 			this.setState({
		// 				shopList:data
		// 			})
		// 			console.log(this.state)
		// 		})
		// 	}
		// }).catch((err)=>{})
	}
}
export default App